home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / zendisk1.zip / LST9-8.ASM < prev    next >
Assembly Source File  |  1990-02-15  |  307b  |  15 lines

  1. ;
  2. ; *** Listing 9-8 ***
  3. ;
  4. ; Times the performance of a 16-bit subtraction
  5. ; of an immediate value of 1.
  6. ;
  7.     mov    dx,1000
  8.     call    ZTimerOn
  9. TestLoop:
  10.     sub    dx,1    ;decrement DX by subtracting 1 from
  11.             ; it (3 bytes long, uses sign-
  12.             ; extended mod-reg-rm form of SUB)
  13.     jnz    TestLoop
  14.     call    ZTimerOff
  15.